<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    /* const obj = {
      age: this
    }
    
    const arr = [1,2,[3,4],{age:18}];
    let [a,b,c,d] = arr;
    console.log(a);
    console.log(b);
    console.log(c);
    console.log(d);

    var str = new String('哈哈sad');
    console.log(typeof str);
    console.log(str.includes('as'));
    var reg = /p/
    console.log(str.search(reg));
    str.substr(0)
    str.substring(0,2)
    str.split('')
    console.log(str.repeat(3)); */
    /* const arr = [1, 2, 3, 4, 5, 10]
    const a = arr.findIndex((item, index, arr) => item > 3)
    const b = arr.some((item, index, arr) => item > 30)
    console.log(b); */
    /* var obj = {
      name: '白粉花',
      age: 15,
      gender: '女',
	    hobby: {
        name: '白梅梅',
        age: 14,
        gender: '女',
        say: () => { console.log('哈哈') }
      }
    }
    let obj1 = {...obj}
    let {hobby} = obj
    console.log(hobby);
    var str = '12sa';
	let [a,b,c,d] = str;//a = 1,b = 2,c = s,d = a
  console.log(a);
  console.log(b);
  console.log(c); */
 /*  const num = 132;
  let { toString: s } = 123;
  console.log(s); */
  /* const a = Symbol(false);
  console.log(a); */
  console.log(Array.prototype);
  console.log(String.prototype);
  const arr = [1,50,4,7,89,100,25,36]
  console.log(arr.sort((a,b)=>{
    return b-a
  }));
  </script>
</body>

</html>